using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerDamage : MonoBehaviour
{
    public float damageToEnemy;

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if ( collision.tag == "Enemy")
            EnemyHealthManager.Instance.GetComponent<IDamage>().Takemage(damageToEnemy);
    }

  
}
